package de.ff7rl.core.map;

import java.awt.Point;
import java.util.ArrayList;
import java.util.List;

public class DungeonMap {

  private Player player;
  private final List<DungeonMapLine> lines = new ArrayList<DungeonMapLine>();
  private Point offset = new Point();
  private String name;

  public DungeonMap(final int theLineCount, final int theColumnCount, final Tile theTemplate) {
    for (int i = 0; i < theLineCount; i++) {
      lines.add(new DungeonMapLine(theColumnCount, theTemplate));
    }
  }

  public List<DungeonMapLine> getLines() {
    return lines;
  }

  public String getName() {
    return name;
  }

  public Point getOffset() {
    return offset;
  }

  public Player getPlayer() {
    return player;
  }

  public void setName(final String theName) {
    name = theName;
  }

  public void setOffset(final Point theOffset) {
    offset = theOffset;
  }

  public void setPlayer(final Player thePlayer) {
    player = thePlayer;
  }

}
